#include <iostream>  
#include <cmath>  
#include <thread>  
#include <chrono>  

using namespace std;

void printHeart() {
    for (int i = 6; i >= -6; --i) {
        for (int j = -10; j <= 10; ++j) {
            double x = j - 5;
            double y = i - 5;
            double d = sqrt(x * x + y * y - 5);

            if (d * d * d - x * x * y * y * y <= 0.25) {
                cout << "*";
            }
            else {
                cout << " ";
            }
        }
        cout << endl;
    }
    cout << "  *****     *****  " << endl;
    cout << " *******   *******  " << endl;
    cout << "********* *********  " << endl;
}

int main() {
    while (true) {
        system("cls");
        printHeart();
        this_thread::sleep_for(chrono::milliseconds(200));
    }
    return 0;
}